/*Diego Lima de Freitas RA: 317632
 *Yuri Souza Padua RA: 317420
 * 
 * Classe que trata o Comando de retorno
 */

package AST;

public class ReturnCommand extends Command {

    private Expr expr;

    public ReturnCommand(Expr expr) {
        this.expr = expr;
    }

    @Override
    public void genC(PW pw) {
        pw.print("return ");
        expr.genC(pw, false);
        pw.out.println(";");
    }
}
